#version 330 core

uniform mat4 MVP;

layout(location = 0)in vec3 Position;
layout(location = 1)in vec3 vertexColor;

out vec3 fragmentColor;

void main()
{
	vec4 v = vec4(Position, 1);
	fragmentColor = vertexColor;
	gl_Position = MVP * v;
}